package sharemem

type SkillPassive struct {
	Id             int32
	Cd_time        int32
	Type           int8
	Skill			[CARD_SKILL_MAX]int32
}

func (tmp *SkillPassive) meminit() {
	var i int8
	tmp.Id = 0
	tmp.Cd_time = 0
	tmp.Type = 0
	for i=0;i<CARD_SKILL_MAX;i++{
		tmp.Skill[i] = 0
	}
}
func (tmp *SkillPassive) isUse() bool {
	return tmp.Id > 0
}
func (tmp *SkillPassive) getId() int32 {
	return tmp.Id
}

func Get_config_skill_passive(id int32) *SkillPassive {
	v, ok := GetConfigSkillPassiveMap()[id]
	if !ok {
		return nil
	}

	return v
}
